<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<head>
	<meta charset="UTF-8">
	<title>凯盛项目管理系统</title>
	<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css" />
	<script type="text/javascript" src="js/jquery.min.js"></script>
	<script type="text/javascript" src="js/bootstrap.min.js"></script>
</head>
<body class="body">
	<jsp:include page="include/top.jsp"></jsp:include>
	<div class="container">
	  <div class="row">
		<jsp:include page="include/left.jsp"></jsp:include>
		<div class="span9">
			
			<ul class="breadcrumb" style="margin-bottom:0px;border-radius: 3px 3px 0 0;margin-top:15px">
				<li class="active">
					<a href="javascript:;"><i class="icon-th"></i>目标1--→${goal.goal_title}</a>
				</li>
				<li style="float:right">
					<i class="icon-edit"></i><a href="editGoal.jspx" class="link-black">编辑</a>
				</li>
			</ul>
			<div class="wall">
				<p>${goal.goal_context}</p>
				<div class="progress progress-danger">
					<div class="bar" style="width: ${requestScope.rate}%;">当前目标总进度完成${requestScope.rate}%</div>
				</div>

				<div class="page-header">
					<a href="toNewTask.jspx" class="btn btn-success"><i class="icon-plus icon-white"></i>添加新任务</a>
				</div>


				<dl>
					<c:forEach items="${taskList}" var="task">
						<dt><i class="icon-bookmark"></i><a href="toEditTask.jspx?taskId=${task.task_id}">${task.task_name}</a>&nbsp;&nbsp;&nbsp;${task.username}&nbsp;&nbsp;&nbsp;${task.task_starttime}&nbsp;至&nbsp;${task.task_endtime}</dt>
						<dd>${task.task_context}</dd>
						<div class="progress">
						  <div class="bar" style="width:${task.rate}%;">完成${task.rate}%</div>
						</div>
					</c:forEach>
      			</dl>
			</div>
			
		</div>
	  </div>
	</div>
</body>
</html>